package com.cpit.platform.dao;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import com.cpit.platform.dto.Role;
import com.cpit.platform.dto.SubSystem;

public interface SubSystemRepository extends JpaRepository<SubSystem, Long> {
	@SuppressWarnings("unchecked")
	SubSystem save(SubSystem sys);
	void delete(SubSystem sys);
	SubSystem findByNameContaining(String name);
	SubSystem findByName(String name);
	SubSystem findById(Integer id);
    Page<SubSystem> findByNameContaining(String subsystemname, Pageable pageable);
}
